import { GeoCoordMap } from "@/assets/ChartMap";
export var convertData = function (data:{name: string,value: number}[]) {
  var res = [];
  for (var i = 0; i < data.length; i++) {
      var geoCoord = GeoCoordMap[data[i].name];
      if (geoCoord) {
          res.push({
              name: data[i].name,
              value: geoCoord.concat(data[i].value)
          });
      }
  }
  return res;
};